
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>edit</title>
    <base href="${pageContext.request.scheme}://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}/pages/Manage/BookEdit.jsp"/>
    <style>
        #div1{
            margin:0 auto;
            text-align: center;
        }
    </style>
</head>
<body>
<div id="div1">
<form action="../../books?action=${ empty requestScope.bookinfo?"addBook":"updateBook"}" name="add" method="post">
    <input type="hidden" name="id" value="${bookinfo.id}"/>
    <input type="hidden" name="pageTotal" value="${param.pageTotal}"/>
    <input type="hidden" name="pageSize" value="${param.pageSize}"/>
    <input type="hidden" name="pageNow" value="${param.pageNow}"/>
    书名:<input type="text" name="name" value="${bookinfo.name}"/><br/><br/>
    价格:<input type="text" name="price" value="${bookinfo.price}"/><br/><br/>
    库存:<input type="text" name="stock" value="${bookinfo.stock}"/><br/><br/>
    作者:<input type="text" name="author" value="${bookinfo.author}"/><br/><br/>
    销量:<input type="text" name="sale" value="${bookinfo.sale}"/><br/><br/>
    图片路径:<input type="text" name="imgPath" value="${bookinfo.imgPath}"/><br/><br/>
    <input type="submit" value="提交"/><br/><br/>
    <input type="reset" value="重置"/><br/><br/>
</form>
</div>
</body>
</html>
